package com.example.feishudemo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Random;

@RestController
@RequestMapping("demo/mybatis")
public class DepartMentController {
    @GetMapping("random")
    public Integer getRandom(){
        return new Random().nextInt();
    }
}